package com.gaswell.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gaswell.entity.Qba01M;
import com.gaswell.pojo.FindLastDataM;
import com.gaswell.pojo.RtuData;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 已处理好的实时数据 Mapper 接口
 * </p>
 *
 * @author Lei Wang
 * @since 2022-05-24
 */
@Repository
public interface FindLastMMapper extends EasyBaseMapper<FindLastDataM> {
//    @Select("select m2.* from findlastdata_m m2 where (m2.jh,m2.cjsj) in (select m1.jh, max(m1.cjsj) from findlastdata_m m1 where m1.jh in #{jhs} group by m1.jh )")
    List<FindLastDataM> findLatestData(@Param("jhs") List<String> jhs);


}
